# -*- coding: utf-8 -*-
import os
dir_path = "/gpfs/scratch/chgwang/XI/DataBase/Model_1d"
file_name_list = os.listdir(dir_path)
for file_name in file_name_list:
    if "nan" in file_name:
        os.remove(os.path.join(dir_path, file_name))